/*
 * Ext JS Library 2.0 RC 1
 * Copyright(c) 2006-2007, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */

Ext.BLANK_IMAGE_URL = '../resources/images/default/s.gif';


var tipMessage;
function TipMessageShow(title,msg)
{
    if(tipMessage ==null){
        tipMessage = new Ext.Tip({
            width:280,
            //height:100,
            resizable:false,
            //autoScroll :true,
            closeAction:'hide',
            closable :false,
            autoHeight:true,
            //autoWidth:true,
            border :false,
            items: [divMessageTip]
        });
    }
    var x = document.body.clientWidth/2 - 140;//window.event.clientX>800?window.event.clientX-230:window.event.clientX+5;
    document.getElementById('divMessageTip').innerHTML = title+':<br><center><font size="3">'+msg+'</font></center>';
    tipMessage.setPosition(x,200);
    tipMessage.show();
    var f = function(v){
        return function(){
            tipMessage.setPosition(x,v);
        };
    };

    for(var i=1;i<23;i++)
    {
        setTimeout(f(200-i*10),1000+50*i);
    }
    window.setTimeout(function(){tipMessage.hide()},2110);
}